<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('同住人')}:</label>
        <div class="col-xs-12 col-sm-8">


            <dl class="list-unstyled fieldlist" data-template="singletpl" data-name="row[other_guest]" id="single-table">
                <dd>
                    <ins>{:__('名字')}</ins>
                </dd>
                <dd>
                    <ins><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></ins>
                </dd>
            </dl>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[other_guest]" class="form-control" cols="30" rows="5" style="display: none"></textarea>
            <script id="singletpl" type="text/html">
                <dd class="form-inline">
                    <ins><input type="text" data-rule="required" name="<%=name%>[<%=index%>][value]" class="form-control" size="15" value="<%=row%>" placeholder="名字"/></ins>
                    <ins>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </ins>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">确认</button>
        </div>
    </div>
</form>